shooter: Make sure to free the surface
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 18 Jul 2013 00:09:56 +0000 (20:09 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 18 Jul 2013 00:10:05 +0000 (20:10 -0400)
docs/tools/shooter.c

index 84c993e25cbd30631bb5856a4b4888d3a5602d25..e05cfb563a4dfdf4c112e0b1510ab59b0ad84155 100644 (file)
@@ -120,6 +120,7 @@ int main (int argc, char **argv)
       filename = g_strdup_printf ("./%s.png", info->name);
       g_assert (cairo_surface_write_to_png (surface, filename) == CAIRO_STATUS_SUCCESS);
       g_free (filename);
+      cairo_surface_destroy (surface);
     }
 
   return 0;